﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;

namespace BUS
{
    public class SPBUS
    {
        public List<SanPhamDTO> LayDSSP()
        {
            SPDAO sp = new SPDAO();
            return sp.LayDSSanPham();
        }

        public string LayTenSP(int maSP)
        {
            SPDAO sp = new SPDAO();
            return sp.LayTenSP(maSP);

        }

        public void CapNhatThemSanPham(int maSP, int soLuong)
        {
            SPDAO spdao = new SPDAO();
            spdao.CapNhatThemSanPham(maSP, soLuong);
        }
        public static void capnhatsodu(int masp,int soluong,DateTime dt)
        {
            SPDAO spdao = new SPDAO();
            spdao.capnhatsodu(masp, soluong, dt);
        }

    }
}
